package apr24ch10ex1;

public class Student extends Person {

	private Integer grade;
	private String schoolName;

	public Student(String name, String surname, String address, Integer grade,
			String schoolName) {
		super(name, surname, address);
		this.name = name;
		setGrade(grade);
		setSchoolName(schoolName);
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

}
